<div class="view list-token-item">
<div class="span-2"><?php echo CHtml::link(CHtml::encode($data->receiptDate),
						array(
							'view',
							'id' => $data->id
						), array(
							'target' => '_blank'
						));
					?></div>

<div class="span-3"><?php echo CHtml::encode($data->project->name); ?></div>
<div class="span-3">
	<?php echo CHtml::encode($data->getAttributeLabel('handler')); ?>:
	<?php echo CHtml::encode($data->handler); ?>
</div>
<div class="span-3">
	<?php echo CHtml::encode($data->getAttributeLabel('type')); ?>:
	<?php echo CHtml::encode($data->displayType); ?>
</div>
<div class="span-4">
	<?php echo CHtml::encode($data->getAttributeLabel('token')); ?>:
	<?php echo CHtml::encode($data->token); ?>
</div>

<div class="span-4 last">

	共 <?php echo CHtml::encode($data->itemCount); ?> 项物品
	<?php if ($data->itemCount > 3) { ?>
	(显示前3项)
	<?php } ?>
</div>
<div class="clear"></div>
<div class="span-15">
	<?php echo CHtml::encode($data->getAttributeLabel('merchantId')); ?>:
	<?php echo CHtml::encode($data->merchant->name); ?>
</div>
<div class="span-3 last">
	<?php echo CHtml::encode($data->getAttributeLabel('priceCheckable')); ?>:
	<?php $booleans=JHTML::getBooleanValues(); echo $booleans[$data->priceCheckable]; ?>
</div>
<div class="clear"></div>
<?php if ($data->note) { ?>
<div><?php echo CHtml::encode($data->getAttributeLabel('note')); ?>:
	<?php echo CHtml::encode($data->note); ?></div>
<?php } ?>
<?php if ($data->itemCount > 0) { ?>
<div class="item-list-grid">
<?php
	$this->renderPartial('_itemList', array(
			'items' => $data->itemsQuick
		));
?>
</div>
<div class="clear"></div>
<?php } ?>
<div class="span-3"><?php echo CHtml::encode($data->getAttributeLabel('processingCost')); ?>:
	<?php echo Yii::app()->format->formatCurrency($data->processingCost); ?></div>
<div class="span-3"><?php echo CHtml::encode($data->getAttributeLabel('transportationCost')); ?>:
	<?php echo Yii::app()->format->formatCurrency($data->transportationCost); ?></div>
<div class="span-3"><?php echo CHtml::encode($data->getAttributeLabel('discount')); ?>:
	<?php echo Yii::app()->format->formatCurrency($data->discount); ?></div>
<div class="span-3"><?php echo CHtml::encode($data->getAttributeLabel('otherCost')); ?>:
	<?php echo Yii::app()->format->formatCurrency($data->otherCost); ?></div>
<div class="span-4 last"><?php echo '总计'; ?>:
	<?php echo Yii::app()->format->formatCurrency($data->getTotalPrice()); ?></div>
<div class="clear"></div>
<div class="span-16 item-meta">
	<?php echo CHtml::encode($data->createUser->employee->fullName); ?>
	(<?php echo CHtml::encode($data->createTime); ?>)
</div>
<div class="span-3"><?php echo CHtml::link('查看详情',
						array(
							'view',
							'id' => $data->id
						), array(
							'target' => '_blank'
						));
					?></div>
<div class="clear"></div>

</div>
